<?php
/**
 * Created by PhpStorm.
 * User: lihao
 * Date: 2017-12-20
 * Time: 15:35
 * 用于测试怎么获取json对象数组测试
 */
$data2 = file_get_contents('php://input');
$data3 = json_decode($data2);
$data = $data3->data;
for($i=0;$i<count($data);$i++){
    echo $data[$i]->name.'------';
}
echo "-----lihao"
?>